#ifndef SECOND_MENU_FORM_H
#define SECOND_MENU_FORM_H

#include "MainMenuForm.h"
class SecondMenuForm :public MainMenuForm
{
	Q_OBJECT
public:
	explicit SecondMenuForm(ElementForm* parent, const int& dispalyNum, const int& top, const int& left);


	QString name()const;
	void setName(const QString& name);
	virtual void setElements(QList<UIElement*> elements)override;
protected:
	virtual void paintEvent(QPaintEvent* event) override;
	virtual void mousePressEvent(QMouseEvent* event) override;
	virtual void mouseMoveEvent(QMouseEvent* event)override;
	virtual void mouseReleaseEvent(QMouseEvent* event) override;



protected:
	QString _name;
	QRect _nameRect;
	QRect  _exitRect;

};
#endif
